import { useResourRangeTable } from './useResourRangeTable';
import { useResourRangeTree } from './useResourRangeTree';

export const useResourRangeData = (curKey: string) => {
  const { reloadTree, treeData, treeLoading } = useResourRangeTree();  //获取左侧树

  const { reloadTableDataSource, tableDataSource, tableLoading } = useResourRangeTable(curKey);  //获取右侧table

  return {
    reloadTree,
    reloadTableDataSource,
    treeData,
    tableLoading,
    tableDataSource,
    treeLoading,
  };
};
